using SqlSugar;
using System.Collections.Generic;

namespace ByteSite.Entitys
{
    /// <summary>
    /// 请求回复规格
    /// </summary>
    public class dt_weixin_request_rule
    {
        /// <summary>
        /// 请求回复规格
        /// </summary>
        public dt_weixin_request_rule()
        {
        }

        /// <summary>
        /// 自增ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public System.Int32 id { get; set; }

        /// <summary>
        /// 公众账户ID
        /// </summary>
        public System.Int32? account_id { get; set; }

        /// <summary>
        /// 规则名称
        /// </summary>
        public System.String name { get; set; }

        /// <summary>
        /// 请求关键词,逗号分隔
        /// </summary>
        public System.String keywords { get; set; }

        /// <summary>
        /// 请求类型(0默认回复1文字2图片3语音4链接5地理位置6关注7取消关注8扫描带参数二维码事件9上报地理位置事件10自定义菜单事件）
        /// </summary>
        public System.Int32? request_type { get; set; }

        /// <summary>
        /// 回复类型(1文本2图文3语音4视频5第三方接口)
        /// </summary>
        public System.Int32? response_type { get; set; }

        /// <summary>
        /// 是否模糊查询
        /// </summary>
        public System.Int32? is_like_query { get; set; }

        /// <summary>
        /// 是否默认回复
        /// </summary>
        public System.Int32? is_default { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public System.Int32? sort_id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Newtonsoft.Json.JsonConverter(typeof(Common.TcDateTimeConverter))]
        public System.DateTime? add_time { get; set; }

        [SugarColumn(IsIgnore = true)]
        public List<Entitys.dt_weixin_request_content> contents { get; set; }
    }
}